<div class="left">
<?php if(Project::model()->getPreviewProject($this->id)):?>
<?php 
	$preview = Project::model()->getPreviewProject($this->id);
	$string = strlen(strip_tags($preview->pro_introduce))?strip_tags($preview->pro_introduce):date('y-m-d',$preview->pro_created);
	
?>
	前一篇：<?php echo CHtml::link(UtilTools::strSlice($string,0,$this->length),array('view','id'=>Project::model()->getPreviewProject($this->id)->pro_id));?>
<?php else:?>
	已经是第一篇了！
<?php endif;?>
</div>


<div class="right">
	<?php if(Project::model()->getNextProject($this->id)):?>
	<?php 
	$next = Project::model()->getNextProject($this->id);
	$string = strlen(strip_tags($next->pro_introduce))?strip_tags($next->pro_introduce):date('y-m-d',$next->pro_created);
	
	?>
		后一篇：<?php echo CHtml::link(UtilTools::strSlice($string,0,$this->length),array('view','id'=>Project::model()->getNextProject($this->id)->pro_id));?>
	<?php else:?>
		已经是最后一篇了，没有了！
	<?php endif;?>
</div>